package com.bingxue.edu.management.education.model.query;

import com.bingxue.edu.common.enums.EnrollStatusEnum;
import com.bingxue.edu.framework.mybatis.query.Query;
import com.bingxue.edu.framework.mybatis.query.QueryType;
import com.bingxue.edu.management.education.model.entity.Student;
import com.mybatisflex.annotation.TableRef;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;


/**
 * 学员查询条件
 *
 * @author panbo
 * @since 2024/07/25 00:02
 */
@Data
@Schema(description = "学员查询条件")
@TableRef(Student.class)
public class StudentQuery {

    @Schema(description = "关键字")
    @Query(type = QueryType.LIKE, field = "name")
    @Query(type = QueryType.LIKE, field = "namePinyin")
    @Query(type = QueryType.LIKE, field = "parentPhone")
    private String keyword;

    @Schema(description = "学生状态")
    private EnrollStatusEnum enrollStatus;

    @Schema(description = "入学年份")
    private Integer admissionYear;
}
